Hello, slight problem here.
I have two classes which look kinda like this:
And a variable:Code:class A { ... public: T *operator[] (int); ... }; class B : public A { ... };
But when I try to do something like x[0] it returns an object of type B, not an object of type T.Code:B x;
Do I need to do something special to get it to return a T ?